cmake_minimum_required(VERSION 2.8 FATAL_ERROR)

find_package(LibDfutils REQUIRED)
include_directories(${LibDfutils_INCLUDE_DIRS})
set(LIBS ${LibDfutils_LIBRARIES})

find_package(LibBin REQUIRED)
include_directories(${LibBin_INCLUDE_DIRS})
list(APPEND LIBS ${LibBin_LIBRARIES})

ADD_LIBRARY(map
  get_l3m.c
  put_l3m.c
)

target_link_libraries(map ${LIBS})

install (TARGETS map DESTINATION lib)
